﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;

public class WebApiResultMiddleware : ActionFilterAttribute
{
    /// <summary>
    /// 统一返回码 并用来写日志
    /// </summary>
    /// <param name="context"></param>
    public override void OnResultExecuting(ResultExecutingContext context)
    {
        // try
        // {
        // context.HttpContext.Session.Remove(context.HttpContext.Request.Path);
            
        // }
        // catch (System.Exception)
        // {
            
        // }
    }
}